/*
 * File Name：ModuleContent.java
 * Copyright：Copyright 2008-2015 CiWong.Inc. All Rights Reserved.
 * Description： ModuleContent.java
 * Modify By：bin
 * Modify Date：2015年1月17日
 * Modify Type：Add
 */
package com.ciwong.epaper.modules.epaper.bean;

import com.ciwong.mobilelib.bean.BaseBean;

/**
 * 模块内容
 *
 * @author bin
 * @version ciwong v.1.0 2015年1月17日
 * @since ciwong v.1.0
 */
public class ModuleContent extends BaseBean {
//    private static final long serialVersionUID = -6181784979038325320L;
    /**
     * 父资源版本ID
     */
    private String parentVersionId;

    /**
     * 资源版本ID
     */
    private String versionId;

    /**
     * 资源名称
     */
    private String resourceName;

    /**
     * 资源类型ID
     */
    private String resourceType;

    /**
     * 资源JSON文件路径
     */
    private String resourceFile;

    /**
     * 是否已删除
     */
    public String isDeleted;


    /**
     * 参考答案路径.目前只有模考参考答案，
     * 新加需求后视频讲解跟在线作答会有
     */
    private String refAnswerFile;

    /**
     * 新包下载结构
     */
    private String resourceUrl;

    /**
     * 文件大小
     */
    private String fileSize;

    @Override
    public String toString() {
        return "ModuleContent{" +
                "parentVersionId='" + parentVersionId + '\'' +
                ", versionId='" + versionId + '\'' +
                '}';
    }

    public String getParentVersionId() {
        return parentVersionId;
    }

    public void setParentVersionId(String parentVersionId) {
        this.parentVersionId = parentVersionId;
    }

    public String getResourceFile() {
        return resourceFile;
    }

    public void setResourceFile(String resourceFile) {
        this.resourceFile = resourceFile;
    }

    public String getRefAnswerFile() {
        return refAnswerFile;
    }

    public void setRefAnswerFile(String refAnswerFile) {
        this.refAnswerFile = refAnswerFile;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }


    public String getResourceUrl() {
        return resourceUrl;
    }


    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileSize() {
        return fileSize;
    }

    @Override
    public boolean equals(Object o) {
        if (getVersionId().equals(((ModuleContent) o).getVersionId())
                && getParentVersionId()
                .equals(((ModuleContent) o).getParentVersionId())) {
            return true;
        }
        return false;
    }

    /**
     * 资源类型ID常量类
     *
     * @author bin
     */
    public static class ResourceType {
        /**
         * 资源类型ID:跟读 单词
         */
        public static final String RESOURCE_TYPE_WORD = "a7527f97-14e6-44ef-bf73-3039033f128e";

        //a03da3e8-70ab-4a35-a9e6-cc5048b1ae46

        /**
         * 资源类型ID:跟读 短语,句子
         */
        public static final String RESOURCE_TYPE_SENTENCES = "6ed8a021-8cd1-45b1-8ec1-a6369dfb19ae";

        /**
         * 资源类型ID:同步跟读课文
         */
        public static final String RESOURCE_TYPE_LESSON = "992a5055-e9d0-453f-ab40-666b4d7030bb";
        /**
         * 资源类型ID:跟读
         * 注意：此条件来自ios
         */
        public static final String RESOURCE_TYPE_TEXT = "f0833ebe-6a8b-4cc1-a6b5-f4d47d93df35";

        /**
         * 资源类型ID:同步测试
         */
        public static final String RESOURCE_TYPE_TEST = "1f693f76-02f5-4a40-861d-a8503df5183f";

        /**
         * 资源类型ID:时文
         */
        public static final String RESOURCE_TYPE_ESSAY = "05a3bf23-b65b-4d7f-956c-5db2b76b9c11";

        /**
         * 资源类型ID:同步训练
         */
        public static final String RESOURCE_TYPE_TRAIN = "2bea5300-972e-494f-b730-6cbc05f0a717";

        /**
         * 资源类型ID:微技能
         */
        public static final String RESOURCE_TYPE_MICRO_SKILLS = "1f693f76-02f5-4a40-861d-a8503df5183f";

        /**
         * 资源类型ID:报听写
         */
        public static final String RESOURCE_TYPE_DICTATION = "3ac07125-31ac-11e5-a511-782bcb066f05";

        /**
         * 资源类型ID:听说模考
         */
        public static final String RESOURCE_TYPE_LISTEN_SPEAK = "fcfd6131-cdb6-4eb8-9cb9-031f710a8f15";//fcfd6131-cdb6-4eb8-9cb9-031f710a8f15

        /**
         * 资源类型ID：听说模考H5页面 只给H5页面使用  听说模考有2个资源类型  一个给原生使用 一个带标签给H5使用
         */
        public static final String RESOURCE_TYPE_LISTEN_SPEAK_HTML = "e9430760-9f2e-4256-af76-3bd8980a9de4";

        /**
         * 资源类型ID:视频讲解
         */
        public static final String RESOURCE_TYPE_VIDEO_EXPLAIN = "eb5d05a2-d604-4879-8f9a-be5a45ae414e";


        /**
         * 资源类型ID:新的视频讲解资源ID
         */
        public static final String RESOURCE_TYPE_VIDEO_EXPLAIN_NEW = "803ef46d-e0cc-4f97-b1eb-b3ef411d058e";


        /**
         * 资源类型ID:在线作答
         */
        public static final String RESOURCE_TYPE_ONLINE_ANSWER = "c458a8d4-e3ca-403c-b6b2-ae166e955590";
        /**
         * 资源类型ID:新阅读 上面卡面
         */
        public static final String RESOURCE_TYPE_ONLINE_NEW_READ = "28203fb2-259e-42a3-97b6-c787f0cf3b79";

    }

}
